package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SessionCharacteristicList {

    private int beginIndex;
    private int endIndex;
    private List<TransactionCharacteristics> sessionCharacteristicList;

    public SessionCharacteristicList(List<TransactionCharacteristics> sessionCharacteristicList) {
        this.beginIndex = sessionCharacteristicList.get(0).getBeginIndex();
        this.endIndex = sessionCharacteristicList.get(sessionCharacteristicList.size() - 2).getEndIndex();
        this.sessionCharacteristicList = sessionCharacteristicList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return sessionCharacteristicList.size();
    }

    public TransactionCharacteristics get(int index) {
        return sessionCharacteristicList.get(index);
    }

}
